<?php
function turntopage($url="index.php",$info = "页面转向中...",$second=2){
echo <<<EODEOT
<html>
<head><title>页面转向中....</title>
<meta http-equiv="refresh" content="$second;url=$url">
<style type="text/css">
td { font-family: "Verdana", "Arial";font-size: 12px}
A {COLOR: #000000; TEXT-DECORATION: none}
</style>
</head>
<body>
<table width="100%" border="0" align="center">
<tr>
<td height="200"> </td>
</tr>
<tr>
<td align="center">
<table width="60%" border="0" cellpadding="8" bgcolor="#AA9FFF">
<tr>
<td height="30" align="center">页面转向提示信息</td>
</tr>
<tr>
<td align="center">$info</td>
</tr>
<tr>
<td align="center">
<a href="$url">如果你的浏览器不支持自动跳转,请按这里</a></td>
</tr>
</tr>
</table></td>
</tr>
<tr>
<td height="200"> </td>
</tr>
</table>
</body>
</html>
EODEOT;
}

turntopage('http://www.baidu.com');
?>